package com.suning.app.snpaasadmin.exception;

/**
 * 返回给前台的错误结构
 * 
 * @author (yufangjiang) Dec 8, 2014
 */
public class ErrorBean {
	/**
	 * 
	 */
	private String errCode;
	/**
	 * 
	 */
	private String errMsg;
	/**
	 * 错误来源，1 云平台 2应用
	 */
	private int source;

	public ErrorBean(String errorCode, String message, int source) {
		super();
		this.setErrCode(errorCode);
		this.setErrMsg(message);
		this.source = source;
	}

	public int getSource() {
		return source;
	}

	public void setSource(int source) {
		this.source = source;
	}

    /**
     * @return the errCode
     */
    public String getErrCode() {
        return errCode;
    }

    /**
     * @param errorCode the errCode to set
     */
    public void setErrCode(String errorCode) {
        this.errCode = errorCode;
    }

    /**
     * @return the errMsg
     */
    public String getErrMsg() {
        return errMsg;
    }

    /**
     * @param errMsg the errMsg to set
     */
    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
